package com.zkt.subject.domain.convert;

import com.zkt.subject.domain.entity.SubjectUserRecordBO;
import com.zkt.subject.infra.basic.entity.SubjectUserRecord;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2025/3/28
 * @description 用户做题记录的实体类型转换器
 **/

@Mapper
public interface SubjectUserRecordConverter {
	
	SubjectUserRecordConverter INSTANCE = Mappers.getMapper(SubjectUserRecordConverter.class);
	
	SubjectUserRecord convertBoToUserRecord(SubjectUserRecordBO subjectUserRecordBO);
	
	List<SubjectUserRecordBO> convertUserRecordListToBo(List<SubjectUserRecord> subjectUserRecordList);
}
